package com.baizhi;

import com.baizhi.service.CategoryService;
import com.baizhi.service.impl.CategoryServiceImpl;

import java.util.List;

public class CategoryAction {
    private List<Category> category;
    private CategoryService ca=new CategoryServiceImpl();
    private int cid;

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public List<Category> getCategory() {
        return category;
    }

    public void setCategory(List<Category> category) {
        this.category = category;
    }

    public String bookListLeft(){
         category = ca.selectCateAndCount(cid);
         return "bookListLeftSucess";

    }
}
